package com.example.demo.entity.DTO;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class unreadDTO {
    private Integer senderId;  // 对应 sender_id 列
    private Integer count;     // 对应 COUNT(*) 列
    private String senderUsername;
    private Object message;

    public void filter(){
        this.setSenderId(null);
    }
}